<?php
//添加分类
session_start();
$addclass=$_POST['addclass'];
$bdata=getdate();
require_once('conn.php');
if($addclass=="")
{
    echo "<script>alert('分类名称不能为空!!'); window.location.href='adminclass.php';</script>";
}
else
{            
            $SQL = "insert into artclass(cs_name,bdata) values('$addclass',Now());";
            mysql_query($SQL);
            mysql_query("COMMIT");
            echo "<script>alert('分类修改完成!!'); window.location.href='adminclass.php';</script>";
}
?>